var e = getApp(),
  t = require('../../../../6DE7A4F370B67DCF0B81CCF401521B27.js');
Component({
  behaviors: [t],
  properties: {
    scroll: { type: Number, value: 0 },
    readShare: { type: Boolean, value: !1 },
    nowBlock: { type: String, value: 'goods' },
    goods_question: null,
    goods_material: null,
    aftersale_explain: null,
  },
  data: {
    statusBarHeight: e.globalData.statusBarHeight,
    navBarHeight: e.globalData.navBarHeight,
    pageLength: 0,
  },
  lifetimes: {
    attached: function () {
      var e = getCurrentPages();
      this.setData({ pageLength: e.length });
    },
  },
  methods: {
    _headTouch: function (e) {
      console.log(e),
        this.triggerEvent('headTouch', e.currentTarget.dataset.name);
    },
    _back: function () {
      wx.navigateBack({ delta: 1 });
    },
    showShare: function () {
      this.triggerEvent('showShare');
    },
    _toIndex: function () {
      wx.switchTab({ url: '/pages/index/index' });
    },
  },
});
